package com.ggggeeennn.studentUser.controller.exam;


import com.ggggeeennn.common.core.controller.BaseController;
import com.ggggeeennn.common.core.page.TableDataInfo;
import com.ggggeeennn.exam.domain.ExamManage;
import com.ggggeeennn.studentUser.service.ExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/student/exam")
public class ExamController extends BaseController {


    @Autowired
    private ExamService examService;
    @GetMapping("/list")
    public TableDataInfo getExamInfoList(Long userId,Integer pageNum,Integer pageSize){
        List<ExamManage> list = examService.selectExamList(userId,pageNum,pageSize);
        return getDataTable(list);
    }



}
